<!--  -->
<template>
  <div>
    <!-- 三级联动的全局组件：三级联动已经注册为全局组件，因此不需要再引入 -->
    <TypeNav />
    <ListContainer />
    <TodayRecommend />
    <Rank />
    <Like />
    <Floor />
    <Floor />
    <Brand />

    <!-- <button @click='add()'>点击我加上1</button>
    <span>{{count}}</span>
    <button @click='sub()'>点击我减1</button> -->
  </div>
</template>

<script>
import TodayRecommend from "@/pages/Home/TodayRecommend";
import ListContainer from "@/pages/Home/ListContainer";
import Rank from "@/pages/Home/Rank";
import Like from "@/pages/Home/Like";
import Floor from "@/pages/Home/Floor";
import Brand from "@/pages/Home/Brand";

import { mapState } from "vuex";
export default {
  name: "",
  components: {
    TodayRecommend,
    Rank,
    Like,
    Floor,
    Brand,
    ListContainer,
  },
  // computed: {
  //   ...mapState(["count"]),
  // },
  // methods: {
  //   add() {
  //     //派发action
  //     this.$store.dispatch("add");
  //   },
  //   sub() {
  //     this.$store.dispatch("sub");
  //   },
  // },
};
</script>

<style scoped>
</style>
